package a.f.g.a;

import a.a.qb;
import a.f.wc;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class d
  extends a.f.mb
{
  public static final Object w = e.I;
  public static final double x = 50.0D;
  public static final double y = 50.0D;
  private List z = new ArrayList();
  private List A = new ArrayList();
  private jb B = new ac();
  private mb C = new g();
  private lc D = new eb();
  private ib E = new hb(false);
  private List F = new ArrayList();
  private List G = new ArrayList();
  private List H = new ArrayList();
  private boolean I = true;
  protected bb J;
  private xb K;
  private double L = 50.0D;
  private double M = 50.0D;
  private boolean N;
  private List O = new ArrayList();
  private boolean P = true;
  public static int Q;
  
  public d()
  {
    this(true);
  }
  
  public boolean a()
  {
    return this.P;
  }
  
  public void h(boolean paramBoolean)
  {
    this.P = paramBoolean;
  }
  
  public d(boolean paramBoolean)
  {
    e(false);
    d(true);
    if (!bool)
    {
      if (paramBoolean) {
        s();
      }
      i(new jc(this));
      t();
    }
    if (!bool)
    {
      if (q.n) {
        i++;
      }
    }
    else {
      xb.q = i;
    }
    if (q.o) {
      xb.r = !bool;
    }
  }
  
  protected void s()
  {
    a(new o());
  }
  
  protected void t()
  {
    a(new n());
  }
  
  public void a(fb paramfb)
  {
    paramfb.a(this);
    this.O.add(paramfb);
  }
  
  public List u()
  {
    return Collections.unmodifiableList(this.O);
  }
  
  public boolean canLayout(a.f.o paramo)
  {
    return b(paramo);
  }
  
  public boolean b(a.f.o paramo)
  {
    if (!xb.r) {}
    return paramo.j() != 0;
  }
  
  public void a(a.f.o paramo)
  {
    e(paramo);
    try
    {
      a(0);
    }
    finally
    {
      f(paramo);
    }
  }
  
  protected void e(a.f.o paramo)
  {
    h(paramo);
    this.K = i(paramo);
    this.J = G();
    F();
    A();
    y();
  }
  
  protected int a(int paramInt)
  {
    boolean bool = xb.r;
    int i = xb.q;
    this.N = true;
    do
    {
      do
      {
        if (z()) {
          break;
        }
        qb.a();
        b(paramInt);
        this.E.a(this.J);
        w();
        v();
        paramInt++;
      } while (i == 0);
    } while (bool);
    return paramInt;
  }
  
  protected void f(a.f.o paramo)
  {
    x();
    D();
    g(paramo);
    this.N = false;
  }
  
  protected void g(a.f.o paramo)
  {
    this.K.c(paramo);
    this.K = null;
  }
  
  protected void b(int paramInt)
  {
    this.J.a(paramInt);
    this.J.a(this.D.b(this.J));
  }
  
  protected void v() {}
  
  private void w()
  {
    int j = xb.q;
    int i = 0;
    do
    {
      if (i >= this.H.size()) {
        break;
      }
      bc localbc = (bc)this.H.get(i);
      localbc.a(this.J, this.K);
      i++;
    } while (j == 0);
  }
  
  private void x()
  {
    int j = xb.q;
    int i = 0;
    do
    {
      if (i >= this.G.size()) {
        break;
      }
      bc localbc = (bc)this.G.get(i);
      localbc.a(this.J, this.K);
      i++;
    } while (j == 0);
  }
  
  private void y()
  {
    int j = xb.q;
    int i = 0;
    do
    {
      if (i >= this.F.size()) {
        break;
      }
      bc localbc = (bc)this.F.get(i);
      localbc.a(this.J, this.K);
      i++;
    } while (j == 0);
  }
  
  protected boolean z()
  {
    return this.D.a(this.J);
  }
  
  protected void A()
  {
    this.E.a(this.A);
    this.E.a(this.B);
    this.E.a(this.C);
    this.E.a();
  }
  
  protected void h(a.f.o paramo)
  {
    if (this.P) {
      wc.a(paramo);
    }
  }
  
  public bb B()
  {
    return this.J;
  }
  
  bb C()
  {
    return this.J;
  }
  
  void a(bb parambb)
  {
    this.J = parambb;
  }
  
  protected void D()
  {
    this.K.s();
  }
  
  public xb i(a.f.o paramo)
  {
    return new xb(paramo);
  }
  
  protected void F()
  {
    int j = xb.q;
    int i = 0;
    do
    {
      if (i >= this.z.size()) {
        break;
      }
      bc localbc = (bc)this.z.get(i);
      localbc.a(this.J, this.K);
      i++;
    } while (j == 0);
  }
  
  protected bb G()
  {
    return new bb(this.K, this, this.I);
  }
  
  public double H()
  {
    return this.L;
  }
  
  public void a(double paramDouble)
  {
    this.L = paramDouble;
  }
  
  public double I()
  {
    return this.M;
  }
  
  public void b(double paramDouble)
  {
    this.M = paramDouble;
  }
  
  public boolean J()
  {
    return this.I;
  }
  
  public void i(boolean paramBoolean)
  {
    this.I = paramBoolean;
  }
  
  public void a(nc paramnc)
  {
    this.A.add(paramnc);
  }
  
  public List K()
  {
    return Collections.unmodifiableList(this.A);
  }
  
  public void c(nc paramnc)
  {
    int i = this.A.indexOf(paramnc);
    if (!xb.r)
    {
      if (i < 0) {
        return;
      }
      this.A.remove(i);
    }
  }
  
  public void a(bc parambc)
  {
    this.F.add(parambc);
  }
  
  public void b(bc parambc)
  {
    int i = this.F.indexOf(parambc);
    if (!xb.r)
    {
      if (i < 0) {
        return;
      }
      this.F.remove(i);
    }
  }
  
  public List L()
  {
    return Collections.unmodifiableList(this.F);
  }
  
  public void c(bc parambc)
  {
    this.G.add(parambc);
  }
  
  public void d(bc parambc)
  {
    int i = this.G.indexOf(parambc);
    if (!xb.r)
    {
      if (i < 0) {
        return;
      }
      this.G.remove(i);
    }
  }
  
  public List M()
  {
    return Collections.unmodifiableList(this.G);
  }
  
  public void f(bc parambc)
  {
    this.H.add(parambc);
  }
  
  public void h(bc parambc)
  {
    int i = this.H.indexOf(parambc);
    if (!xb.r)
    {
      if (i < 0) {
        return;
      }
      this.H.remove(i);
    }
  }
  
  public List O()
  {
    return Collections.unmodifiableList(this.H);
  }
  
  public boolean P()
  {
    return this.N;
  }
  
  public lb Q()
  {
    return this.K;
  }
  
  public xb R()
  {
    return this.K;
  }
  
  mb S()
  {
    return this.C;
  }
  
  void a(mb parammb)
  {
    this.C = parammb;
  }
  
  public lc T()
  {
    return this.D;
  }
  
  public void a(lc paramlc)
  {
    this.D = paramlc;
  }
  
  ib U()
  {
    return this.E;
  }
  
  void a(ib paramib)
  {
    this.E = paramib;
  }
  
  jb V()
  {
    return this.B;
  }
  
  void a(jb paramjb)
  {
    this.B = paramjb;
  }
  
  public void i(bc parambc)
  {
    this.z.add(parambc);
  }
  
  public void j(bc parambc)
  {
    int i = this.z.indexOf(parambc);
    if (!xb.r)
    {
      if (i < 0) {
        return;
      }
      this.z.remove(i);
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.g.a.d

 * JD-Core Version:    0.7.0.1

 */